Ext.define('Ext.webapp.resmanage.dictionaryoperate',{
	    extend:'Ext.form.Panel',
        frame: true,
        width: 340,
        bodyPadding: 5,
        fieldDefaults: {
            labelAlign: 'left',
            labelWidth: 90,
            anchor: '100%'
        },

        items: [{
            xtype: 'textfield',
            name: 'username', 
            fieldLabel: '用户名'
        }, {
        	xtype: 'textfield',
            name: 'password',
            inputType:'password',
            fieldLabel: '密码'
        }],
        buttons: [{
            text: 'Save',
            handler: function(){
        	  var theForm = this.up('form').getForm();
        	 // Ext.MessageBox.alert('Status',theForm.getValues().username+theForm.getValues().password);
        	  //Ext.MessageBox.alert('Status1',theForm.getValues().password);
        	  theForm.submit({
        		  success: function(form, action) {
                  Ext.Msg.alert('Success', action.result.msg);
               },
               failure: function(form, action) {
                   Ext.Msg.alert('Failed', action.result.msg);
               }
        	  });   
        	  this.up('window').hide();
            }
        },{
            text: 'Cancel',
            handler: function(){
        	  this.up('window').hide();
            }
        }]
    });